Skip to content

Make ClusterCapabilities fields optional during rollout#351

Closed
lomidzemikheili wants to merge 1 commit intomainfrom
fix/mikheil/cluster-capabilities-optional
Closed

Make ClusterCapabilities fields optional during rollout#351
lomidzemikheili wants to merge 1 commit intomainfrom
fix/mikheil/cluster-capabilities-optional

Conversation

@lomidzemikheili
Copy link
Copy Markdown
Contributor

PR #345 / #346 introduced ClusterState.capabilities and the three fields inside ClusterCapabilities (disk_expansion, backup, scalability_info) with (buf.validate.field).required = true, but no producer populates them yet — so every ClusterState response fails buf-validate and breaks UI calls.

This relaxes those four required validators and adds a comment that they will be tightened again once cluster-api populates the fields. The wire schema and field numbers are unchanged; only the runtime validation is loosened, so this is forward- and backward-compatible.

Follow-up: populate capabilities in cluster-api, then a separate PR re-introduces required = true once rollout is complete.

@github-actions github-actions Bot added the fix label Apr 26, 2026
@github-actions
Copy link
Copy Markdown

The latest Buf updates on your PR. Results from workflow Pull Request / linting (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedApr 26, 2026, 5:56 PM

@github-actions
Copy link
Copy Markdown

PR Packages Published

Python Package:

  • Version: 0.119.0.dev351+53dcb95
  • Package: qdrant-cloud-public-api
  • Registry: https://us-python.pkg.dev/qdrant-cloud/python/
  • To update run: uv add qdrant-cloud-public-api==0.119.0.dev351+53dcb95

NPM Package:

  • Version: 0.119.0-dev351.53dcb95
  • Package: @qdrant/qdrant-cloud-public-api
  • Registry: https://us-npm.pkg.dev/qdrant-cloud/npm/
  • To update run: npm install @qdrant/qdrant-cloud-public-api@0.119.0-dev351.53dcb95

@lomidzemikheili lomidzemikheili self-assigned this Apr 26, 2026
@lomidzemikheili lomidzemikheili marked this pull request as ready for review April 26, 2026 17:57
@lomidzemikheili lomidzemikheili requested a review from a team as a code owner April 26, 2026 17:57
@lomidzemikheili
Copy link
Copy Markdown
Contributor Author

The required field was populated buy the service, so there is not need to make it optional.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant